package model

import (
	"gorm.io/gorm"
	"video-mgr/video-server/basic/config"
)

type Review struct {
	gorm.Model
	UserID  int    `gorm:"type:int(11);comment:管理员ID"`
	VideoID int    `gorm:"type:int(11);comment:视频ID"`
	Status  string `gorm:"type:varchar(30);comment:审核视频状态"`
}

func CreateReview(r *Review) error {

	return config.DB.Create(&r).Error
}